#ifndef _Bullet_h_
#define _Bullet_h_
#include<windows.h>
#include"Sprite.h"
#include"StaticObjects.h"
#include"Enemies.h"
class CBullet
{
	int x;
	int y;
	float vx;
	float vy;
	int width;
	int height;
	CSprite *bullet;
	CSprite *explose;
	bool bejump;
	bool isactive;
	bool isexplose;
	int direction;
public:
	CBullet(int _x,int _y,int direction);
	~CBullet();
	void Move(CStaticObjects *StaticObject,RECT screen);
	bool CollisionWithEnemies(CEnemies *Enemies);
	void Render(LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 image,int time,int xcamara);
};
#endif